import time
from io import BytesIO
import numpy as np

from selenium import webdriver
from selenium.webdriver.common.by import By
from PIL import Image


option = webdriver.ChromeOptions()
option.add_argument("-headless")
browser = webdriver.Chrome(chrome_options=option)

browser.get("http://www.taobao.com")

text = browser.find_elements(By.XPATH,'//div[@class="site-nav-sign"]/a')
print(text)
for t in text:
    print(t.get_attribute('href') + t.text)

browser.close()
